/*
 * @FileName: [ConfigureService.java]
 * 
 * @Package com.bcinfo.upp.sys.service
 * 
 * 
 * Copyright (c) 2011-2015 BCINFO Technology Limited Com. All rights reserved.
 * 
 * This software is the confidential and proprietary information of BCINFO Technology Limited Company ("Confidential Information"). You shall not disclose such Confidential Information and shall use it only in accordance with the terms of the contract agreement you entered into with RKY.
 * 
 * $Rev: 3540 $ $LastChangedDate: 2013-06-24 16:32:41 +0800 (Mon, 24 Jun 2013) $ $LastChangedBy: lengzq $
 * 
 * @category bcinfo-upp
 * 
 * @version 1.1
 * 
 * @author $Author: lengzq $
 * 
 * Change History:[Formatter: author date description] <br/> 1 2 3
 */

package com.bci.pwtz.service;

import java.util.List;

import com.bci.pwtz.exception.PwtzDatabaseException;
import com.bci.pwtz.mysql.model.Config;

/**
 * 配置管理服务 <br/>
 * <p>
 * Description:<br/>
 * <p>
 * 系统配置管理服务，提供系统配置查询、根据参数名查询
 * 
 * <p>
 * For Examples <br/>
 * 
 * <PRE>
 * </PRE>
 * <p>
 */
public interface ConfigService
{
    /**
     * 
     * 查询系统配置 <br/>
     * <p>Description: 根据KEY查询系统配置值，返回对应的数组，value是有多个值通过逗号、空格分隔
     * <br/>
     * <p>Author: huangb<br/>
     * <p>Date: 2013-5-11-下午03:42:25<br/>
     * <p>
     * @param key 系统配置键
     * @return 返回配置值
     * @throws PwtzDatabaseException   
     */
    String[] getConfigsByKey(String key) throws PwtzDatabaseException;

    /**
     * 
     * 根据key查找value <br/>
     * <p>Description: 根据key查询系统配置
     * <br/>
     * <p>Author: tonic<br/>
     * <p>Date: 2014-9-16-下午2:09:10<br/>
     * <p>
     * @param key
     * @return
     * @throws PwtzDatabaseException   
     *
     */
    String getConfigByKey(String key) throws PwtzDatabaseException;
    
    List<Config> selectConfigList()throws PwtzDatabaseException;
    
    int updateLastSyncTime(String lastSyncTime)throws PwtzDatabaseException;
}
